<template>
  <el-dialog title="生产过程" :visible.sync="visible" :center="true" width="82%">
    <el-form :model="toolOrderVO" label-width="80px" size="mini" label-position="left">
      <el-form-item label="订单编号">
        <el-input style="width: 200px" :disabled="true"
                  v-model="toolOrderVO.sn"
        ></el-input>
      </el-form-item>
      <el-form-item label-width="0">
        <el-table
            :data="toolOrderVO.toolOrderItemVOS" border
            stripe
            style="width: 100%" size="mini">
          <el-table-column label="序号" width="50" type="index"></el-table-column>
          <el-table-column label="产品名称" width="200px" prop="name"></el-table-column>
          <el-table-column label="产品图纸" width="250px" prop="toolAttachments">
            <template slot-scope="scope">
              <el-link v-for="attachment in scope.row.toolAttachmentVOS" :key="attachment.id"
                       :href="attachment.filePath"
                       target="_blank">
                {{ attachment.filePath }}
              </el-link>
            </template>
          </el-table-column>
          <el-table-column label="图号" width="150px" prop="drawingNumber"></el-table-column>
          <el-table-column label="数量" width="100px" prop="number"></el-table-column>
          <el-table-column label="交货时间" width="100px" prop="requestDeliveryTime"></el-table-column>
          <el-table-column label="生产数量" width="100px" prop="productionQuantity">
          </el-table-column>
          <el-table-column label="外协数量" width="100px" prop="teamworkQuantity">
          </el-table-column>
          <el-table-column label="图纸" width="250px">
          </el-table-column>
          <el-table-column label="完工入库数量">
          </el-table-column>
          <el-table-column label="入库时间">
          </el-table-column>
        </el-table>
      </el-form-item>
      <br>
      <el-form-item label-width="0">
        <el-button type="primary" size="mini">提 交</el-button>
        <el-button type="warning" size="mini">取 消</el-button>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>

<script>
export default {
  name: "ProductionProcess",
  data() {
    return {
      toolOrderVO: {
        sn: '',
        toolOrderItemVOS: [{
          id: '',
          name: '',
          toolAttachmentVOS: [],
          number: '',
          drawingNumber: '',
          requestDeliveryTime: '',
          productionQuantity: '',
          teamworkQuantity: '',
          teamworkCompany: ''
        }],

      },
      taskId: '',
      fileList: [],
      visible: true
    }
  },
}
</script>

<style scoped>

</style>